package net.muchine.core.service;

import net.muchine.core.dao.GenericDao;

import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface GenericService<T, K> {
	
	public int create(T entity);
	
	public int update(T entity);
	
	public int delete(K key);
	
	@Transactional(readOnly=true)
	public T find(K key);
	
	@Transactional(readOnly=true)
	public long countAll();
}
